package com.andova.component.lbs;

import com.baidu.location.BDLocation;

/**
 * Created by Administrator on 2017-12-08.
 *
 * @author kzaxil
 * @since 1.0.1
 */
public class BaiDuLocInfo implements ILbsLocInfo<BDLocation> {
    private BDLocation mBDLocation;

    private static BaiDuLocInfo mLocInfo;

    public static BaiDuLocInfo get() {
        if (mLocInfo == null) {
            synchronized (BaiDuLocInfo.class) {
                if (mLocInfo == null)
                    mLocInfo = new BaiDuLocInfo();
            }
        }
        return mLocInfo;
    }

    @Override
    public BDLocation locInfo() {
        return mBDLocation;
    }

    @Override
    public void locInfo(BDLocation locInfo) {
        mBDLocation = locInfo;
    }
}
